home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-20 / thsham.zip / THS.DOC < prev    next >
Text File  |  1991-08-25  |  52KB  |  1,209 lines

  1.  
  2.  
  3.                         THS - TNC Hostmode Server
  4.                         =========================
  5.                                 HB9CVV
  6.                               August 1989
  7.  
  8.                              Version 2.50
  9.  
  10.  
  11. THS is a Packet Radio terminal  program for the IBM-PC. THS reqires  one
  12. of the following devices:
  13.  
  14.         - a TNC-1 with the WA8DED V1.3 Software.
  15.         - a TNC-2 with the WA8DED V2.3 software.
  16.         - a DRSI PC*Packet Adapter and the DRSI supplied TNC driver
  17.             software.
  18.  
  19. Major features of THS are:
  20.  
  21.         - user configurable comm-port, colors and texts
  22.         - split screen operation
  23.         - command and parameter entry in windows
  24.         - extended help functions
  25.         - review of received text
  26.         - printing and snapshooting the review-buffer
  27.         - logging (capturing) to file
  28.         - online printer support
  29.         - send text from file
  30.         - binary file transfer using YAPP protocol
  31.         - multi-channel operation
  32.         - heard list showing the path
  33.         - Net/Rom frames are decoded
  34.         - wordwrapping is available
  35.         - temporary exit to DOS
  36.         - built-in message editor
  37.         - support for screens up to 80*60
  38.         - 16550A Chip support with FIFO
  39.  
  40.  
  41. The list of current  revisions of THS version  2 is found at  the end of
  42. this document.
  43.  
  44. THS has been developped  on a 386-AT with  VGA under IBM DOS  3.3. Tests
  45. have been run on PC/AT's and  PC/XT's with EGA, CGA and Hercules  cards,
  46. and under different versions of IBM DOS 3.x.  THS may run or may not run
  47. on other  hardware, and  on earlier  or other  versions of the operating
  48. system.
  49.  
  50. Tests show that on ordinary PCs running at 4.77 Mhz the program overhead
  51. is too high  to serve a  9600 baud line,  if you experience  RS-232 port
  52. overrun errors, you must reduce the baud rate to 4800 baud, or even 2400
  53. baud.   However 8  Mhz or  10 Mhz  PCs run  well with  9600 baud  lines.
  54. PC-ATs have no  problems. THS will  not run under  the pseudo multi-task
  55. shells like Desqview or Windows.
  56.  
  57. The memory requirements of  THS are about 360  kB. In these days,  where
  58. 640kB memory is standard, this should  not be much of a problem.  If you
  59. can start THS, but get once  the message "TERMINAL ERROR: cannot open  a
  60. window" you  do not  have enough  memory to  run THS.  It is possible to
  61. reduce the memory requirements of THS by reducing the window sizes.  The
  62. minimum requirements will be about 250kB.
  63.  
  64. THS covers my needs for packet radio so I implemented the features which
  65. I wished to have, and did not bother to fit all tastes and to match  all
  66. possibilities.   THS may  well be  not adequate  for your  requirements,
  67. please remember however that you are  not forced to use it, nor  did you
  68. have to pay for it.
  69.  
  70. THS is not copyrighted, I release it to the Public Domain. Any  positive
  71. feedback is  welcome, note  however that  I feel  no obligations  of any
  72. kind.
  73.  
  74.  
  75. 1. Principles of Operation.
  76. ---------------------------
  77.  
  78. THS runs  the TNC  software exclusively  in HOST  mode, which  permits a
  79. maxiumum of control and cooperation. THS is written in TURBO-C and  uses
  80. a realtime kernel called CTASK. CTASK is public domain software  written
  81. by Thomas  Wagner, Berlin,  West-Germany and  is found  on BIX  (a truly
  82. remarkable piece of software !).
  83.  
  84. The internal  implementation of  THS in  form of  five concurrent tasks.
  85. This permits  full parallel  service of  communications control, screen,
  86. and keyboard - you  will never notice delays  when you type (opposed  to
  87. other similar programs).
  88.  
  89. The windowing system  is implemented using  the VITAMIN C  library (with
  90. some modifications), a commercially available software library.  Vitamin
  91. C permits writing to non-active  windows, so scrolling in an  underlying
  92. window is possible.
  93.  
  94. This feature, together with the real-time operation, permits to continue
  95. the  receiving  and  displaying  of  received  packets even when support
  96. windows (e.g. help windows or parameter dialog windows) are opened.
  97.  
  98.  
  99. 2. Installation.
  100. ----------------
  101.  
  102. It  is  expected  that  you  are  familiar  with  the operation of a TNC
  103. containing the WA8DED control software and with the documents describing
  104. that software.
  105.  
  106. THS consists of the following files:
  107.  
  108.         THS.EXE         TNC Hostmode Server.
  109.         THS.CFG         Configuration file.
  110.         THSHELP.MSG     Help file.
  111.         THSHELP.IDX     Index file.
  112.         THS.DOC         Document file
  113.  
  114. The first four files must reside  in the same directory. Before you  can
  115. run THS, you  must edit the  configuration file THS.CFG  to reflect your
  116. environment, and possibly you might have to configure your TNC also.
  117.  
  118. The syntax to call THS is:  "THS [filename]" where filename is the  name
  119. of  a  configuration  file.  If  filename  is  omitted, THS will use the
  120. default, THS.CFG.
  121.  
  122.  
  123. 1.1 The configuration file THS.CFG.
  124. -----------------------------------
  125.  
  126. THS  reads  the   configuration  file  whenever   you  start  THS.   The
  127. configuration  file  contains  information  about  hardware and software
  128. parameters. If this information is  not accurate, THS will be  unable to
  129. proceed.
  130.  
  131. NOTE:  THS  does  not  do  any  consistency  checks or range checks when
  132. reading from the  CFG-file. You must  not omit lines,  or use parameters
  133. with values other than specified in this chapter.
  134.  
  135.  
  136. Here is an example of a configuration file:
  137.  
  138. ---------------------<beginning of file>-----------------------------
  139. HB9CVV-02
  140. 2     Device is TNC-2 with 2.3
  141. 0x2F8 Address of TNC COMPORT
  142. 3     Interrupt of TNC COMPORT
  143. 9600  Baudrate
  144. 1     Printer number (LPT1)
  145. 1     Use direct video I/O
  146. Operator ist OFFLINE, your message will be recorded - vy 73 de Peter.
  147. *** Peter - Qth: Port/Biel - JN37OC ***
  148. 07,00,07,00,00,02,01,15,07,00  Receive (upper, permanent)
  149. 07,00,07,00,00,02,01,15,07,00  Transmit (lower, permanent)
  150. 04,07,07,04,03,00,07,00,04,15  Statusline (middle, permanent)
  151. 01,11,01,11,01,11,01,02,07,04  Immediate command entry
  152. 01,15,01,15,07,00,00,14,01,14  Opening, THS-Help, Review
  153. 01,11,01,11,03,00,03,01,07,00  Parameter Dialogs
  154. 01,11,01,11,01,15,01,11,07,00  Activity during YAPP xfer
  155. 00,02,00,02,01,14,00,00,07,00  Parameter Dialog Help Line
  156. 01,11,01,11,01,15,01,11,07,00  Parameter Dialog Extended Help (File)
  157. 01,11,01,11,01,15,01,11,07,00  Other
  158. 00,11,03,11                    Channel indicator attributes & echo text
  159. #Name & Qth
  160. My name is Peter, the qth is Port near Biel/Bienne
  161. #The Rig
  162. The rig here is:
  163. Program   : THS (TNC Hostmode Server)
  164. Computers : PC/AT, 3MB RAM, 80 MB harddisk.
  165.             386AT, 4MB RAM, 150 MB harddisk.
  166. TRX       : Ten-Tec Paragon, 100W
  167.             IC-271H, 100W
  168.             TW-4100E 45W
  169. Antenna   : Remotely tunable GP for HF
  170.             2*11 element Yagi (2m)
  171.             19 element Yagi (70cm)
  172. TNC       : TNC-1 with WA8DED V1.3
  173.             TNC-2 with WA8DED V2.3
  174.             DRSI PC*Packet Adapter
  175. %T 40
  176. $C DK1SL VIA HB9F HB9W
  177. $C HB9SDD
  178. $C HB9PQX VIA HB9CTU
  179. }0,200,200,200,100,100
  180. ------------------------<end of file>--------------------------------
  181.  
  182. The first line
  183.  
  184. contains your call. THS sends  an 'I'-command followed by this  callsign
  185. string to the  TNC on channel  0 during the  initialization. No comments
  186. are possible on this line.
  187.  
  188. The second line
  189.  
  190. defines the device type: '1' for  TNC-1 with WA8DED V1.3, '2' for  TNC-2
  191. with WA8DED V2.3, and '8' for the PC*Packet Adapter. The numbers are not
  192. validated  by  THS,  specifiying  another  number  will leave the system
  193. inoperable.
  194.  
  195. The third line
  196.  
  197. defines the address of your communications port. You must specify it  in
  198. this hexadecimal presentation (0xhhh).   THS will detect and report  the
  199. access of a non-existent commport.  (Standard values are 0x3F8 for  COM1
  200. and 0x2F8 for COM2).  This line is meaningless  if the device is  type 8
  201. (PC*Packet Adapter), it must exist however.
  202.  
  203. The forth line
  204.  
  205. defines  the  interrupt  number  of  your communications port. (Standard
  206. values are 4 for COM1 and 3  for COM2). This line is meaningless if  the
  207. device is type 8 (PC*Packet Adapter), it must exist however.
  208.  
  209. The fifth line
  210.  
  211. defines the  baud-rate for  the communications  port. It  must of course
  212. match the baudrate you selected for  the TNC.  This line is  meaningless
  213. if the device is type 8 (PC*Packet Adapter), it must exist however.
  214.  
  215. *** NOTE: If THS is unable to contact the TNC, a wrong commport  address
  216. and/or interrupt, or a  wrong baudrate could be  the cause. The same  is
  217. true if you get permanent RS-232 error reports from THS after startup.
  218.  
  219. The sixth line
  220.  
  221. defines the printer number (printer port). Legal values are 1 to 3,  for
  222. LPT1, LPT2  and LPT3.  Printer output  to printers  connected to  serial
  223. lines is not possible.
  224.  
  225. The seventh line
  226.  
  227. defines the video access. A '1' is used for direct video i/o, and should
  228. be used for all video cards other than CGA.  If a value of 1 causes snow
  229. or other visual effects, switch to a value of 2. This changes THS to use
  230. retrace synchronisation - which is requred for older CGA cards.
  231.  
  232. The eighth line
  233.  
  234. contains your connect message. The line may not exceed 72 characters, if
  235. it does then  the line is  truncated. This line  is loaded into  the TNC
  236. whenever THS is started. You can however alter your connect message  any
  237. time with the ALT/U (Unattended Mode) command.
  238.  
  239. The ninth line
  240.  
  241. contains your beacon text. The line may not excced 72 characters, if  it
  242. does, then the line is truncated. You can alter the beacon text with the
  243. ALT/B command.
  244.  
  245. The next ten lines  specify the colour attributes  of all windows.   The
  246. scheme is:
  247.  
  248.  +------------------------------------ Border, background
  249.  |  +--------------------------------- Border, foreground
  250.  |  |
  251.  |  |  +------------------------------ Title, background
  252.  |  |  |  +--------------------------- Title, foreground
  253.  |  |  |  |
  254.  |  |  |  |  +------------------------ Text, background
  255.  |  |  |  |  |  +--------------------- Text, foreground
  256.  |  |  |  |  |  |
  257.  |  |  |  |  |  |  +------------------ Inactive Input field, background
  258.  |  |  |  |  |  |  |  +--------------- Inactive Input field, foreground
  259.  |  |  |  |  |  |  |  |
  260.  |  |  |  |  |  |  |  |  +------------ Active Input field, background
  261.  |  |  |  |  |  |  |  |  |  +--------- Active Input field, foreground
  262.  |  |  |  |  |  |  |  |  |  |
  263. 07,00,07,00,00,02,01,15,07,00  Receive (upper, permanent)
  264. 07,00,07,00,00,02,01,15,07,00  Transmit (lower, permanent)
  265. 04,07,07,04,03,00,07,00,04,15  Statusline (middle, permanent)
  266. 01,11,01,11,01,11,01,02,07,04  Immediate command entry
  267. 01,15,01,15,07,00,00,14,01,14  Opening, THS-Help, Review, Editor (Note 1.)
  268. 01,11,01,11,03,00,03,01,07,00  Parameter Dialogs
  269. 01,11,01,11,01,15,01,11,07,00  Activity during YAPP xfer
  270. 00,02,00,02,01,14,00,00,07,00  Parameter Dialog Help Line
  271. 01,11,01,11,01,15,01,11,07,00  Parameter Dialog Extended Help (File)
  272. 01,11,01,11,01,15,01,11,07,00  Other
  273.  
  274. The numbers are decimal. THS does not validate the range.
  275.  
  276. 1.) An error in this version limits the foreground color for the editor
  277.     to black...
  278.  
  279. Number  Foreground      Backgrround
  280.  
  281. 00      BLACK           BLACK
  282. 01      BLUE            BLUE
  283. 02      GREEN           GREEN
  284. 03      CYAN            CYAN
  285. 04      RED             RED
  286. 05      MAGENTA         MAGENTA
  287. 06      BROWN           BROWN
  288. 07      LIGHTGRAY       LIGHGRAY
  289. 08      DARKGRAY        |
  290. 09      LIGHTBLUE       |
  291. 10      LIGHTGREEN      |
  292. 11      LIGHTCYAN       |- as above, blinking
  293. 12      LIGHTRED        |
  294. 13      LIGHTMAGENTA    |
  295. 14      YELLOW          |
  296. 15      WHITE           |
  297.  
  298.  
  299. Line twenty (this line is new in version 2)
  300.  
  301. must contain  four or  six numbers.  The first  four numbers defines the
  302. attributes for the channel indicator. Please refer to the discussion  of
  303. channels below.  The first  two numbers  in this  line define  the color
  304. attributes of  the on-screen  channel, the  next two  numbers define the
  305. attributes for an off-screen channel which has received data. Of the two
  306. number pairs, the first is  the background attribute, the second  is the
  307. foreground attribute. In the example, the statusline text attributes are
  308. "03,00" which means 'black on cyan'. The example line 20 is:
  309.  
  310. 00,11,03,11,02,00               Channel indicator attributes & echo text
  311.  
  312. which reads: the number of the on-screen channel is 'lightcyan on black'
  313. (00,11) - and the number of a off-screen window which has received  data
  314. is 'lightcyan on cyan' (03,11).
  315.  
  316. The third number pair defines the attributes for the transmitted text in
  317. the receive window, and may be  omitted. The text you type is  echoed in
  318. the lower (transmit) window. When you send the text by typing a carriage
  319. return,  the  text  is  moved  to  the  upper  (receive) window, and the
  320. transmit window  is cleared.  THS uses  different attributes  so you can
  321. easily distinguish the  text which you  sent from the  text you receive.
  322. By default, the text sent has the same text and background color as  the
  323. received text, but is  intensified. This is what  you get if you  do not
  324. specify the third number pair. If you do, THS will use these attributes.
  325.  
  326. Example:  if  you  have  defined  'green  on  black'  for  the text- and
  327. background-color of the receive window,  which is the number pair  00,02
  328. and you  want your  text reversed,  not intensified,  then define  02,00
  329. here.
  330.  
  331.  
  332. The next lines
  333.  
  334. are optional and are composed of four different types of strings:
  335.  
  336.         - (#) text strings and titles for text strings.
  337.         - (%) initialisation command strings.
  338.         - ($) online command strings.
  339.         - (}) THS parameters
  340.  
  341. The text strings  are assigned to  the function keys  F01 to F10  in the
  342. sequence they appear  in the configuration  file, when you  press such a
  343. function  key,  THS  sends  the  associated  text  string to the TNC. By
  344. pressing ALT/F THS shows the titles of the text strings in a window box.
  345.  
  346. The line with a hash-sign (#) in column one defines the title which  can
  347. contain up to  30 charcters. Everything  exceeding 30 characters  is cut
  348. off.  The lines following the  title line until the next title  line, or
  349. the end of the file form the text string. The length of all text strings
  350. together  is  limited  only  by  the  available  memory space.  The text
  351. strings  are   intended  for   reasonable  sized   texts  like   station
  352. descriptions etc.. Up to ten  #-lines are possible. If you  specify more
  353. that ten #-lines, they are ignored.
  354.  
  355. You can also specify up to 10 lines with percent (%) sign in column one.
  356. The text following the percent sign must not exceed 40 characters and is
  357. sent as  a command  to channel  zero when  THS loads  the TNC parameters
  358. during startup.  This is  done after  THS has  sent the  default set  of
  359. parameter  commands  and  so  allows  the  user  to override the default
  360. parameter set of  THS. This set  is described below.  You should however
  361. take some care - the contents of the %-lines are sent unconditionally to
  362. the TNC and  must be a  valid command to  be effective. A  %-line should
  363. contain also only meaningfull commands  which do not interfere with  THS
  364. operation. It makes no sense to have a line like:
  365.  
  366. %MN
  367.  
  368. to  disable  monitoring,  because  this  obviously  would  disable  THS'
  369. heard-list feature.  It could make sense however to increase the TXDELAY
  370. if your rig requires it.
  371.  
  372. The $-lines must  also contain valid  TNC commands. Up  to 20 lines  not
  373. exceeding  72  characters  are  possible.  They  are  stored  by THS and
  374. presented  together  with  a  selection  character when you press ALT/W.
  375. When you press the  selection character or move  the bar to the  desired
  376. entry, then the associated string is sent as a command to the  on-screen
  377. channel.  The  $-lines are intended  to build a  call-sign directory for
  378. connects, you may  however use other  commands there as  well, so it  is
  379. called "Command String Directory".
  380.  
  381. The }-line  allows you  to modify  the THS  configuration. This  line is
  382. optional. The format is:
  383.  
  384.         }a0,b0,b1,b2,b3,b4,c0,d0,d1,e0
  385.  
  386.  
  387. RS-232 control line usage: a0
  388.  
  389. If a0  is zero,  then THS  ignores the  RS-232 control-lines  (DCD, RTS,
  390. CTS).  This allows just a 3-wire (TXD, RXD & GND) connection to the TNC.
  391. Note however that in  this case THS cannot  detect if a TNC  is offline,
  392. and will always  enter the TNC-initialisation  routine.  The  default is
  393. non-zero.
  394.  
  395.  
  396. Column size of the virtual receive windows: b0 to b4
  397.  
  398. b0 to b4 define the number  of lines in the virtual receive  windows for
  399. channels zero  to four.  This defines  how many  lines are available for
  400. reviewing.  The  minimum  value  is  40,  the  maximul value is 200. The
  401. default is the maximum for all windows.
  402.  
  403.  
  404. Software delay: c0
  405.  
  406. c0 is  a time  value in  microseconds for  a software  delay loop and is
  407. effective only if the device is  a PC*PA. THS will wait c0  microseconds
  408. before  every  access  to  the   TNCTSR.  This  may be required on  very
  409. fast machines (e.g. 386 machines with cache).  The range of  c0 is 0  to
  410. 5000, the default is zero.  If you ever  experience a THS  error  report
  411. (a  window appearing in the top half of the screen) with the PC*PA, then
  412. you should experiment  with  this  value.  Start  with  c0 = 1000.  Note
  413. that higher values may degrade the performance of THS however.
  414.  
  415.  
  416. Editor window size: d0, d1
  417.  
  418. d0 and d1 define the editor window size, columns and rows. The range for
  419. d0 (column)  is 64  to 79,  and includes  the window  border. If a given
  420. value  exceeds  one  of  the  limits,  then the according limit value is
  421. taken. If you omit this parameter,  or specify a zero, then the  default
  422. value of 76 is taken. The range for d1 (row) depends on the size of  the
  423. (upper) receive window, which itself  depends on the number of  lines of
  424. your current video mode. The range if from half that window to full size
  425. minus one. For the  standard 25 line mode,  the range is 10  to 20, also
  426. including the border.  The default here  is the lowest  value, i.e. half
  427. the size of the receive window.
  428.  
  429.  
  430. Filter received characters: e0
  431.  
  432. e0 determines the initial value of the FILTER variable, see the
  433. description of the ALT/T command. A zero disables the filtering, a one
  434. enables it. The default (e.g. if omitted) is zero.
  435.  
  436.  
  437. 2. Starting THS.
  438. ----------------
  439.  
  440. When started, THS saves the current screen and presents three basic  and
  441. one opening window. The basic windows are the receive window, the status
  442. line (window)  and the  transmit window.  The basic  windwos are  always
  443. present. THS has three major modes: dialog mode, review mode and  binary
  444. file transfer (YAPP-)mode. The initial  mode is dialog mode.   Note that
  445. THS will determine the current number  of rows used for the screen,  and
  446. will adjust its windowing system accordingly.
  447.  
  448. To prevent overrun errors on the RS-232 port, THS disables the functions
  449. of  the  CAPS-lock,  NUM-lock  and  SCROLL-lock  keys  when it used with
  450. external TNCs connected to COM-ports with standard serial communications
  451. controller chips. Such  controller chips are  the 8250, 16450  and 16550
  452. chips. The  16550A chip  has a  built in  FIFO (a  16 byte hardware data
  453. stack) and interrupt  servicing of this  chip is far  less critical. The
  454. Dual Async Adapter/A from IBM in PS/2 Microchannel models is supposed to
  455. use 16550A chips. For Industrial Standard Bus machines it is possible to
  456. simply replace the 8250/16450/16550 chips on the serial adapters with  a
  457. 16550A chip to  benefit. THS will  detect a 16550A  chip and enable  the
  458. FIFO (If the PC*PA is  used, no interrupt timing problems  exist because
  459. the PC*PA's driver is polled).
  460.  
  461. The opening window  presents information about  the (hardware) state  of
  462. the communications  port, and  informs you  about the  efforts of THS to
  463. contact  the  TNC.  For  external  TNC's,  THS follows the guidelines of
  464. KB5MU's "WA8DED  Host Mode  Guide" for  the initial  contact to the TNC.
  465. For the PC*Packet Adapter, THS expects to find the TNC in terminal-mode,
  466. not in host-mode.   Please note that when  THS exits, the TNC  is always
  467. switched to terminal-mode.
  468.  
  469. If THS fails to contact the TNC properly, check the hardware  parameters
  470. (comm-port address, irq, baudrate on  the THS side, and baudrate  on the
  471. TNC side). After  a correction, a  new try should  be made only  after a
  472. hardware reset on BOTH sides.
  473.  
  474. Note that  the standard  connection to  an external  TNC is  by a RS-232
  475. cable which has the lines 1 to 8 and line 20 connected. This permits THS
  476. to check the control signals to  determine if the TNC is switched  on or
  477. not. If you disabled the use  of the control lines in the  configuration
  478. file, THS is unable to detect an offline TNC immediately and will  start
  479. the host resync pass (which then will fail).
  480.  
  481. THS  also  sets  the  parameters  of  the  TNC (indicated by the message
  482. "loading TNC parameters". The callsign from line one of the CFG file  is
  483. always set first,  followed by the  connect message and  the beacon text
  484. line  (from  lines  8  and  9  of  the CFG file). Next, THS enables full
  485. monitoring but excludes monitoring of  the own frames, i.e. frames  from
  486. and to this callsign.
  487.  
  488. Finally, the following commands are sent if the device is an external
  489. TNC:
  490.  
  491.     "Y 4",        /* Enable all four channels */
  492.     "F 4",        /* Frame acknowledge (seconds) */
  493.     "N 10",       /* Number of tries (0=forever) */
  494.     "O 4",        /* Number of outstanding I frames */
  495.     "P 64",       /* P-persistence value */
  496.     "R 1",        /* Repeater enabled */
  497.     "T 40",       /* Transmitter delay 400mS */
  498.     "U 0",        /* Unattended mode disabled */
  499.     "V 2",        /* Version 2 protocol initiated */
  500.     "W 10",       /* Slot time interval (100ms) */
  501.     "X 1",        /* Transmitter PTT disabled/enabled */
  502.     "@D 0",       /* Full duplex disabled/enabled */
  503.     "@T2 100",    /* Timer T2 interval (1000ms) */
  504.     "@T3 18000",  /* Timer T3 interval (6 min) */
  505.     "@V 0"        /* Callsign validation disabled/enabled */
  506.  
  507. "P 64  and "W  16" are  sent only  to TNC-2's,  for a  TNC-1 with WA8DED
  508. software version 1.3, a "W 16" is sent instead.
  509.  
  510. The following commands are sent to a PC*Packet Adapter:
  511.  
  512.     "Y 4",        /* Enable all four channels */
  513.     "U 0",        /* Unattended mode disabled */
  514.     "V 2",        /* Version 2 protocol initiated */
  515.     "X 1",        /* Transmitter PTT disabled/enabled */
  516.     "@V 0",       /* Callsign validation disabled/enabled */
  517.     "P 0 1 64 10 4 4 10 100 18000 40",
  518.     "P 1 1 64 10 4 1 10 100 18000 30"
  519.  
  520. Next, for all TNCs, the %-lines read from the CFG file are sent to allow
  521. an  overwrite  of  the  THS  defauts  (see  also  the description of the
  522. configuration file above).
  523.  
  524. If you want to  accept less than four  connect-requests to you, you  can
  525. alter this either online with  the "Yn" TNC-command in a  command window
  526. (see the description of  the immediate-command-entry below), or  use the
  527. Y-command in a %-line in the configuration file. E.g. %Y2 to accept only
  528. two connect requests (from different stations).
  529.  
  530. THS finally comes up with channel ONE on-screen.
  531.  
  532.  
  533. 3. Operating THS.
  534. -----------------
  535.  
  536. After a succesful  contact with the  TNC, you will  see the three  basic
  537. windows:  the  receive  window,  the  statusline window and the transmit
  538. window.
  539.  
  540.  
  541. The presentation of the channels.
  542. ---------------------------------
  543.  
  544. The TNC software permits up  to four different and independent  channels
  545. for simultaneous connections to different connectees. These channels are
  546. channels one  to four.   Channel zero  is the  unconnected channel which
  547. also receives all monitored frames. There is one receive window for each
  548. channel.
  549.  
  550. On screen, there is  only space for one  receive window at a  time. This
  551. receive window is called the 'on-screen window' and the channel which it
  552. presents is called the 'on-screen channel'.
  553.  
  554. To switch between the channels,  you use the left-arrow and  right-arrow
  555. keys. On the left side of  the statusline is the channel indicator,  the
  556. string "01234", representing  channel 0 to  4. The on-screen  channel is
  557. indicated  in  INVERSE  video.    The  number  of  a  off-screen   (i.e.
  558. invisible) channel  which receives  data from  the TNC  changes to BOLD.
  559. This is the  indication that there  is unseen activity  on that channel.
  560. You can look  at that window  simply by making  it the on-screen  window
  561. with the left/right arrow keys.
  562.  
  563.         Note that these attributes (INVERS and BOLD) can be
  564.         changed for your taste in the configuration file.
  565.  
  566.  
  567. The on-screen receive window.
  568. -----------------------------
  569.  
  570. In  the  on-screen  receive  window  you  will  see  everything which is
  571. received from the TNC on the associated channel - with the exception  of
  572. packets during a binary file transfer (these go, of course, to a file).
  573.  
  574. If you  want to  review text  which has  scrolled off  the screen, press
  575. ALT/R  or  Up-arrow.   During  review,  the  TNC  input to the on-screen
  576. channel (only) is halted.  You should not leave THS in review mode for a
  577. long time if  there is packet  activity on the  reviewed channel because
  578. the TNCs buffer may overflow and cause loss of data.
  579.  
  580. The status line.
  581. ----------------
  582.  
  583. The status line  presents actual information  about the link,  the date,
  584. and the time.  There are two  flavours of the  status line which  can be
  585. toggled by the <INS>-key. The default is a line like:
  586.  
  587. 01234 | NS:00 UA:01 TRY:01 | INFORMATION TRANSFER | PL | 05-AUG 23:46:45
  588. |       |     |     |        |                      ||   |
  589. |       |     |     |        current link stare     ||   date & time
  590. |       |     |     current try number              |logging is ON
  591. |       |     current number of unacked frames      printing is ON
  592. |       current number of transmitted frames not sent.
  593. channel indicator
  594.  
  595. NOTE: UnAacked frames have been  sent (once). NSent presents the  number
  596. of  present  but  unprocessed  frames  in  the  TNC. Please refer to the
  597. 'L'-command of TNC's document.
  598.  
  599. The second flavour is a line like:
  600.  
  601. 01234 | DK1SL VIA HB9VC HB9PUO                     | PL | 05-AUG 23:46:51
  602.         |
  603.         current connect state.
  604.  
  605. If the connected-state string length exceeds the available space, it  is
  606. truncated.
  607.  
  608. The status line is always updated realtime (unless the receive window is
  609. being reviewed). You can observe the quality of the link by watching the
  610. time and number of tries used to acknowledge data frames.
  611.  
  612.  
  613. The transmit window.
  614. --------------------
  615.  
  616. The lowest three lines are the transmit status window, and all what  you
  617. type for  your qso  is echoed  here. You  send the  entered text  to the
  618. on-screen channel  as usual  by pressing  the ENTER-key  - the  transmit
  619. window is cleared  and your text  is moved to  the receive window  using
  620. bold characters  to easily  distinguish between  received text  and text
  621. sent.
  622.  
  623.  
  624.         Note that these attributes (default: BOLD) can be
  625.         changed for your taste in the configuration file.
  626.  
  627. If your on-screen channel is 1,2,3 or 4, and you are not connected, then
  628. the TNC simply  discards your input.  If you did  select channel 0,  the
  629. text is send out UNPROTO (i.e. in an UI-frame) via the UNPROTO path.
  630.  
  631.  
  632. The Commands
  633. ------------
  634.  
  635. We distinguish between  'normal' keys and  'special' keys. Special  keys
  636. are  all  keys  not  found  on  the  main key field of the keyboard (i.e
  637. function keys, keypad keys) and all ALT-key combinations of normal keys.
  638. You use the normal  keys for data entry,  all special keys cause  THS to
  639. perform some special function.
  640.  
  641. The following  special keys  are used  to control  THS (and  the TNC) in
  642. dialog mode:
  643.  
  644.         ALT/P   Device Parameter Setup Menu
  645.         ALT/T   THS Parameter Setup Menu
  646.         ALT/C   Connect Menu
  647.         ALT/D   Disconnect
  648.         ALT/U   Unattended Parameter Menu
  649.         ALT/G   Show Unformatted Heardlist
  650.         ALT/H   Show Formatted Heardlist
  651.         ALT/V   View DOS Directory
  652.         ALT/L   Logging (capture) ON/OFF
  653.         ALT/J   Printer ON/OFF
  654.         ALT/S   Send an ASCII file
  655.         ALT/R   Review Received Text
  656.         ALT/F   Review Function Key Setup
  657.         ALT/B   Beacon Text
  658.         ALT/W   Command string directory
  659.         ALT/K   Call Editor
  660.         PgUp    Binary File Upload (YAPP)
  661.         PgDn    Binary File Download (YAPP)
  662.  
  663.         <INS>   Toggle Status Line Display
  664.         CTRL/ESC  Direct Command Entry
  665.  
  666.         ALT/E   Temporary exit to DOS
  667.         ALT/X   Exit THS
  668.  
  669.  
  670. With the  exception of  the function  keys proper,  pressing an 'unused'
  671. special  key  causes  the  pop-up  of  a window which presents the above
  672. information, this is to inform you about the 'used' special keys.
  673.  
  674. NOTE: All pop-up windows will disappear after some seconds. You can also
  675. close the window by any keystoke.
  676.  
  677.  
  678. ALT/P   TNC Parameter Setup Menu
  679. --------------------------------
  680.  
  681. The Device Parameter  Window is shown,  and THS first  reads the current
  682. value of all the parameters. You  then may alter one or more  parameters
  683. (use the up- and down-arrow keys to navigate, and press F10 when you are
  684. ready to apply the changes.  THS sets all parameters and  re-reads them.
  685. If you specified a parameter to a value outside the permitted range, you
  686. will see that  your change has  no effect. You  leave the TNC  Parameter
  687. Setup  by  pressing  ESC.   Reading  and  writing the parameters is done
  688. concurrently with  other activities  of course.  For your  assistance, a
  689. one-line explanatory text is presented  for each parameter. If you  need
  690. further help, you may press F1 to get a more detailed help information.
  691.  
  692. Most parameters are common to all channels. For all parameters which are
  693. unique  for  each  channel,  only  the  on-screen  channels parameter is
  694. influenced.
  695.  
  696. NOTE: If you change parameters and do not press F10 (the 'apply changes'
  697. key) before you press the ESC key, then nothing is applied.
  698.  
  699. NOTE: If you change the HDLC  baudrate for a PC*Packet Adapter, the  you
  700. MUST execute a TNC reset (via the ALT/T menu) next to make it effective.
  701.  
  702.  
  703. ALT/T   THS Parameter Setup Menu
  704. --------------------------------
  705.  
  706. The THS Parameter Setup Menu operates like the TNC Parameter Setup menu.
  707. This  menu  is  used  to  modify  software parameters of THS rather than
  708. software parameters of the TNC. You can:
  709.  
  710.  -  enable  or  disable  timestamps  on  monitored  frames  (link status
  711.    messages are always stamped).
  712.  
  713.  - enable  or disable  if you  want to  hear 'bells'  sent to you from a
  714.    connected station (you will never hear bells from monitored stations)
  715.    (BELL).
  716.  
  717.  - enable or disable if you want  to hear a bell when you get  a connect
  718.    (CBELL).
  719.  
  720.  - set the packet frame length for binary transfers (PKLEN).
  721.  
  722.  -  set  the  maximum  number  of  pending  frames  for  transfer bursts
  723.    (MAXPFRAM).
  724.  
  725.  - reset  the PC*Packet  Adapter. (Not  available for  external TNCs. To
  726.    reset such a TNC, exit THS, power off/on the TNC and call THS again).
  727.  
  728.  - enable or disable word wrapping (WORDWRAP).
  729.  
  730.  - define  the  window  which  gets  the monitored frames (MWINDOW).  By
  731.    default, this  is window  zero (because  channel zero  is the monitor
  732.    channel.  You  can  however  route  all  monitored  frames to another
  733.    channel window of your own choice.
  734.  
  735.  - filter out non-printable charcters (FILTER). If this is enabled, only
  736.    BELL, HT, LF, VT,  FF, CR and the  characters with ASCII values  from
  737.    0x20 to 0x7E are displayed as is, the filtered charcter are shown  as
  738.    a small solid rectangle. If you use a national character set, MFILTER
  739.    should be disabled.
  740.  
  741.  
  742. PKLEN needs an explanation. Obviously,  whenever you send a file  (ASCII
  743. or binary), THS could send that file faster than the TNC is able to send
  744. packets,  so  we  must  slow  down  somewhere  or the TNC's buffer would
  745. overflow. Of the link state parameters which are readable from the  TNC,
  746. there are two values which determine the number of packets which the TNC
  747. has  already  got  for  transmission:  the  number  of  transmitted, but
  748. unacknowledged frames, and the  number of sent (sent-to-the-TNC)  frames
  749. not yet transmitted. The  sum of these to  numbers is MAXPFRAM. You  may
  750. use this parameter together with PKLEN to tune the filetransmisson speed
  751. to the quality of the packet link.
  752.  
  753. The maximum  numbers permit  the highest  possible speed  but requires a
  754. high quality link.  This also implies  that the radio  channel is almost
  755. exclusively  used  by  the  file-transfer,  leaving  no  room  for other
  756. stations.  ! Don't do it on 'the qso channel' !
  757.  
  758. If you cannot withstand to do  a filetransfer when you have a  miserable
  759. link, or if you insist to do a filetranfer on a channel with  activities
  760. of other stations, then  use the minimum values.  In this case you  will
  761. only have one short  packet outstanding and your  TNC will wait for  the
  762. acknowledgement before sending out the next.
  763.  
  764.  
  765. ALT/C   Connect Menu
  766. --------------------
  767.  
  768. The Connect Menu lets you enter the destination callsign and ssid, up to
  769. eight digipeaters, and the PC*Packet Adapter's port number. Again, press
  770. F10 to execute  the command.   Pressing ESC exits  the connect menu  and
  771. removes the window only.
  772.  
  773. On channel zero, this sets the UNPROTO path.
  774.  
  775.  
  776. ALT/D   Disconnect
  777. ------------------
  778.  
  779. This causes a disconnect command for the TNC immediately. If you are not
  780. connected, you  will get  a small  TNC status  window for  a few seconds
  781. which tells you the TNC's return: CHANNEL NOT CONNECTED.
  782.  
  783.  
  784. ALT/U   Unattended Parameter Menu
  785. ---------------------------------
  786.  
  787. Much  like  the  TNC  Parameter  Setup  menu, you can enable and disable
  788. unattended operation here, and specify the connect-message.
  789.  
  790.  
  791. ALT/H   Formatted Heardlist
  792. ALT/G   Unformatted Heardlist
  793. -----------------------------
  794.  
  795. A window is  presented with the  Heardlist. This is  a list of  the most
  796. recent stations  heard, sorted  by descending  time (i.e.  last heard on
  797. top).  The list can contain up to 30 different call signs, the  vertical
  798. window size adujsts to the number of call signs but only up to 12 calls.
  799. If more than  12 calls are  available, you can  scroll with up  and down
  800. with the arrow keys. You also can scroll in the vertical direction if an
  801. entry is larger than the vertical  window size. The window will stay  on
  802. the screen 60 seconds if no action is done.
  803.  
  804. If you  used ALT/H  you get  exactly what  you would  have to  use for a
  805. connection to such heard call.
  806.  
  807. If  you  pressed  ALT/G  instead  of  ALT/H  you  get a heard-list which
  808. contains  the  uninterpreted  (unformatted)  lines,  i.e.  exactly   the
  809. monitored headers as received by the TNC.
  810.  
  811. You will  see a  bar on  the first  entry which  moves when  you use the
  812. up-arrow or down-arrow  key. When you  position the bar  on a line,  and
  813. press F10 or <Enter> then a  connect command is send to the  source call
  814. sign in the line, using the indicated path. Any key other than the arrow
  815. keys, F10 or Enter removes the Heard-list window.
  816.  
  817. Please note the following:
  818.  
  819. The connect feature works also when you use the 'unformatted heard list'
  820. window. If a source  call sign is heard  via a NetRom node,  it makes no
  821. sense to connect it  this way.  Also  note that the heard  list gets not
  822. updated when you switch monitoring off by a TNC command. The heard  list
  823. processing is done by THS, *NOT* by the TNC - consequently it will  work
  824. only  (a)  when  THS  is  active  and  (b)  when  THS  gets the required
  825. information from the TNC.
  826.  
  827.  
  828. ALT/V   View DOS Directory
  829. --------------------------
  830.  
  831. You  are  asked  for  a  file  specification, and will get the directory
  832. information.
  833.  
  834.  
  835. ALT/L   Logging (capture) ON/OFF
  836. --------------------------------
  837.  
  838. Logging means  writing out  to a  file everything  which appears  on the
  839. screen for the logged channel. Logging is done on an individual  channel
  840. basis,  i.e.  you  must  enable  and  disable  logging  for each channel
  841. independently.
  842.  
  843. When you  press ALT/L  and logging  is currently  off for  the on-screen
  844. channel, THS asks you for a filename. THS gives you a filename which  is
  845. made up of the current date and time. If you want to accept this, simply
  846. press ENTER, otherwise specify your  own filename. The extension of  the
  847. filenmane is always "CAx" where x  is the channel number. The file  will
  848. be created in the current directory,  on the current drive. If the  file
  849. already exists, then THS-writes are appended to the existing file.
  850.  
  851. If logging is  already on, you  will be asked  if the logfile  should be
  852. closed.
  853.  
  854. The letter "L"  appears on the  right hand side  of the statusline  when
  855. logging is enabled. Logging is a channel attribute, so logging continues
  856. for a channel as long as logging is enabled for the channel,  regardless
  857. if the channel is on-screen or off-screen - until you disable it.
  858.  
  859.  
  860. ALT/J   Printer ON/OFF
  861. ----------------------
  862.  
  863. Toggle the printer output on or off. Because you have multiple  channels
  864. but only one printer, you can always print only one channel.
  865.  
  866. When you  press ALT/J  and printing  is currently  off for the on-screen
  867. channel, then from that moment this channel (and only this channel) will
  868. be printed. Printing continues when this channel goes off-screen.
  869.  
  870. The letter "P"  appears on the  right hand side  of the statusline  when
  871. printing is switched on, and only one channel will show the "P".
  872.  
  873. Note that when you  are printing, and your  printer goes offline by  any
  874. reason, THS will detect this and switch printer output OFF but will  not
  875. hang.  Please  also  note  that  THS  has  an internal 1024 byte printer
  876. buffer, so  with slow  printers, the  printer may  continue to print out
  877. buffered characters for a while after you disabled printing.
  878.  
  879. Also, when you print a busy  channel with an almost maximum dataflow  of
  880. almost 1200 bps on the HF side, your printer should be able to print  at
  881. least 100 characters per second (!) continuously.
  882.  
  883.  
  884. ALT/S   Send an ASCII file
  885. --------------------------
  886.  
  887. You can send a  file containing text only  when you are connected.  When
  888. you press ALT/S you are asked  for the filename, and if the  file exists
  889. THS sends it out. You will see  the lines transferred to the TNC in  the
  890. receive window  using bold  characters, just  like you  had typed in the
  891. contents of the  file. You are  also informed about  how many lines  the
  892. file contains, and how many  lines have been transferred.   Please refer
  893. to the description of ALT/T for parmeters influencing file transfers.
  894.  
  895. Note: during ASCII file sends you cannot switch the on-screen channel.
  896.  
  897.  
  898. ALT/R or Up-Arrow       Review Received Text
  899. --------------------------------------------
  900.  
  901. ALT/R  lets  you  review  the  received  text  which has srolled off the
  902. screen.  When reviewed, the  on-screen channel is polled, but  all other
  903. channels are. THS' review buffer is 200 lines for each channel.
  904.  
  905. You can print the entire review buffer (that is, the used part if it  is
  906. not filled up) by pressing ALT/J.  You can also write the review  buffer
  907. into a file. The file is written in the current directory on the current
  908. drive; the filename is generated by the current date and time, with  the
  909. extension "SNP".
  910.  
  911.  
  912. ALT/F   Review Function Key Setup
  913. ---------------------------------
  914.  
  915. ALT/F shows the titles of the text strings which can be called  pressing
  916. the  function  keys.  Please  refer  to  the  description  of  the   THS
  917. configuration file. If you have not used all function keys, pressing  an
  918. unused function key will also show this window.
  919.  
  920.  
  921. ALT/B   Beacon Text
  922. -------------------
  923.  
  924. ALT/B shows the beacon text and lets you modify it.  Whenever you  press
  925. Enter or F10, the beacon text  is sent (once) via the UNPROTO  path (see
  926. ALT/0).
  927.  
  928.  
  929. ALT/W   Command String Directory
  930. --------------------------------
  931.  
  932. Please see the description of the $-lines in the configuration file.
  933.  
  934.  
  935. ALT/K   Call Editor
  936. -------------------
  937.  
  938. ALT/K calls the message editor. First you are asked for a filename, then
  939. the  editor  loads  the  file  into  the  editor window. If no such file
  940. exists, you are asked if the  file should be created. For a  description
  941. of the editors  keys, press the  F1 help-key please.  When you exit  the
  942. editor with the ESC-key, you are  asked if the file should be  saved. If
  943. you agree, you can for example next send the file with ALT/S. If you  do
  944. not want to  save to a  file, the editor  window is closed  and the next
  945. time you  recall the  editor, you  are immediately  back where you left.
  946. Note however that for to send the file, it must first be saved.
  947.  
  948.  
  949. PgUp    Binary File Upload (YAPP)
  950. PgDn    Binary File Download (YAPP)
  951. -----------------------------------
  952.  
  953. Pressing PgUp or PgDn will start  a binary file transfer using the  YAPP
  954. protocoll as  created and  specified by  Jeff Jacobson,  WA7MBL. THS  is
  955. compatible   with   all   programs   which   have   'YAPP'  implemented.
  956. Furthermore, the hostmode of the WA8DED software permits better  control
  957. in the event link difficulties occur. For example, a disconnect during a
  958. file  transfer  is  immediately  recognized  and the transfer is stopped
  959. without sending  the remainder  of the  file out  via the  UNPROTO path.
  960. Also, you can abort (cancel)  transfers by ALT/A. Note however  that the
  961. cancellation will take  some time, because  the TNC must  first send out
  962. all pending  frames until  the cancel  request frame  can be  sent, or a
  963. incoming cancel request can be acknowledged.
  964.  
  965. This can be a severe problem when you have a bad link, but in this  case
  966. you anyhow should better not  use automated transfers. Or have  at least
  967. set the THS parameters accordingly -  see the description of ALT/T.   In
  968. case of a bad link, you should also use AX25 level 1, not level 2.
  969.  
  970. At any time you can disconnect by ALT/D - this breaks the link but  also
  971. flushes the TNC's buffers immediately.  Aborting a transfer by ALT/D  is
  972. preferable to ALT/A. You  can also kill a  transfer with ALT/K. This  is
  973. disconnects  the  link  and  reconnects  after  THS has switched back to
  974. dialog mode.
  975.  
  976. THS uses the following timeout parameters:
  977.  
  978. (1) The sender will try to trigger the receiver (Send-Init) six times in
  979.     intervals of 20 seconds before timing out.
  980.  
  981. (2) The receive time-out (waiting for a YAPP packet) is 120 seconds.
  982.  
  983. You are able  to modify the  TNC or THS  parameters during ongoing  YAPP
  984. transfers - the THS help window (which is called with an arrow-key,  for
  985. example) will show you which keys have effect during YAPP transfers:
  986.  
  987.         ALT/P   TNC Parameter Setup Menu
  988.         ALT/T   THS Parameter Setup Menu
  989.         ALT/D   Disconnect
  990.         ALT/A   Cancel Transfer
  991.         <INS>   Toggle Status Line Display
  992.  
  993. All other  keys are  ignored during  a YAPP  binary transfer.  It is not
  994. possible to switch the channels during the transfer.
  995.  
  996. Before entering YAPP transfer mode, THS modifies the MAXFRAME  parameter
  997. of the TNC to the maximum value of 7, sets RESPTIME to zero and disables
  998. monitoring. The previous values are restored when YAPP transfer mode  is
  999. left. This gives a maximum thoughput (and requires a high quality link).
  1000.  
  1001. You should realize that  if you have a  quality link on a  busy channel,
  1002. the other hams will surely not enjoy your transfers.
  1003.  
  1004. A  certain  amount  of  througput  control  is  done  with  the MAXPFRAM
  1005. parameter, see ALT/T.
  1006.  
  1007.  
  1008. <INS>   Toggle Status Line Display
  1009. ----------------------------------
  1010.  
  1011. See the description of the status line above.
  1012.  
  1013.  
  1014. CTRL/ESC   Direct Command Entry
  1015. -------------------------------
  1016.  
  1017. When pressing CTRL/ESC,  you get a  command window and  a "CMD>" prompt.
  1018. Everything you enter is  sent to the TNC  as a command on  the on-screen
  1019. channel.  The  syntax  required  is  the  command  syntax  of the WA8DED
  1020. software.  If the  TNC returns a message  as an answer to  your command,
  1021. this message is  displayed. You terminate  the command entry  by another
  1022. ESC or by ENTER.
  1023.  
  1024. The direct or immediate command entry window call has been changed  from
  1025. ESC to  CTRL/ESC because  ESC is  commonly used  by THS  for escaping  a
  1026. window.
  1027.  
  1028.  
  1029. ALT/E   Temporary exit to DOS
  1030. -----------------------------
  1031.  
  1032. When you press ALT/E then THS suspends itself and calls a second command
  1033. processor (i.e. COMMAND.COM). THS is completely inactive until you  type
  1034. EXIT to the DOS prompt. This also means that the TNC is NOT polled,  and
  1035. all incoming frames remain buffered  in the TNC. You should  return back
  1036. to THS as soon as possible because the TNC's buffer are limited and  you
  1037. will loose information if the TNCs buffer overflow.
  1038.  
  1039. All  files  which  have  been  opened  by  THS  remain  open when THS is
  1040. suspended, you must NEVER change disks if your logfiles are on removable
  1041. disks !
  1042.  
  1043.                         NOTE
  1044.                         ----
  1045.         Exit to DOS requires DOS 3.20 or higher.
  1046.  
  1047.  
  1048. ALT/X   Exit THS
  1049. ----------------
  1050.  
  1051. The ultimate key.  You will be  asked for a  confirmation. Anything else
  1052. but a 'Y'  or 'y' will  leave you in  THS. If THS  exits, it clears  the
  1053. screen and returns with your familiar DOS prompt.
  1054.  
  1055. However, THS  may also  report a  number of  device i/o  errors when  it
  1056. exits. A device i/o error results when one of several consistency checks
  1057. on  the  message  blocks  received  from  the  device fails. When such a
  1058. failure occurs, THS flushes the current message and continues. You shoud
  1059. normally not get any report at all. Note that errors resulting from  the
  1060. ACE chip ("RS-232 errors) are always reported (see below).
  1061.  
  1062.  
  1063.  
  1064. Finally, the secret ALT-key:
  1065.  
  1066. Whenever you give ALT/A, any incoming message to the currently  selected
  1067. window is accompanied by a deep summing tone. Another ALT/A disables the
  1068. sound. There is no visible indication of ALT/A, because obviously  there
  1069. is  an  audible  one.  I  often  use  ALT/A when my partner says "wait a
  1070. minute", because I have no klicking relais in my TRX which would attract
  1071. my attention after that minute.
  1072.  
  1073.  
  1074. 4. Error Reports
  1075. ----------------
  1076.  
  1077. Whenwever THS detects  an error, it  will open a  window and display  an
  1078. error message and  optionally parameters. Note  that it is  normally not
  1079. possible to recover from these errors. The message types are
  1080.  
  1081. "RS-232 Read error. Code received: 0xnnnn"  - where:
  1082.  
  1083.                 0xFFFF      timeout
  1084.                 0x02nn      overrun error
  1085.                 0x04nn      parity error
  1086.                 0x08nn      framing error
  1087.                 0x10nn      break interrupt.
  1088.  
  1089. These  errors  (besides   timeout)  are  signalled   by  the  ACE   chip
  1090. (8250/16450), i.e. hardware error reports or faults.
  1091.  
  1092. Parity and framing errors, or  break interrupt indicate a chip  problem,
  1093. this could  however be  on either  end of  the serial  line. Try  to use
  1094. another port on the PC, and/or reduce the transmission baud rate.
  1095.  
  1096.  
  1097. 4.1. RS-232 Overrun Errors.
  1098. ---------------------------
  1099.  
  1100. Whenever you  get an   overrun error  this indicates   that the   System
  1101. is not fast  enough to    process the  incoming   characters. This   can
  1102. be solved   by   either   reducing   the   frequency    in   which   the
  1103. incoming  characters  appear,   i.e.  by   reducing  the    transmission
  1104. baudrate,   or  by  using  a  more  sophisticated  serial communications
  1105. controller chip, or  by increasing the CPU speed.
  1106.  
  1107. Unfortunatly if the  System has not  enough time to  process an incoming
  1108. character  timely  this  may  be  caused  by  other  code which executes
  1109. concurrently and which disables the interrupt recognition for a too long
  1110. time period. Some sad examples:
  1111.  
  1112. Pressing the  CAPS-, NUM-  and SCROLL-lock  key of  an enhanced keyboard
  1113. cause the BIOS to toggle the  LED status indicators, which is done  with
  1114. interrupts  disabled  (but  takes  far  more  time  than other character
  1115. processing) and immediately causes an RS-232 data overrun error, even on
  1116. 10Mhz AT's with 4800 Baud to the TNC.
  1117.  
  1118. THS disables the  functions of the  CAPS-lock, NUM-lock and  SCROLL-lock
  1119. keys when used with external TNCs (i.e. not when a PC*PA is used).
  1120.  
  1121. The next  problem of  interrups-off-too-long is  introduced by  national
  1122. keyboard drivers. ALL  keyboard drivers from  a DOS version  higher than
  1123. 3.20 exhibit this problem. You could disable this driver by  CTRL/ALT/F1
  1124. which gives you the  US keyboard layout, or  try drivers from older  DOS
  1125. versions.  Sorry again, but DOS is truly NOT designed for concurrency.
  1126.  
  1127. Obviously, with the PC*PA you will not have any of these problems.
  1128.  
  1129. Another solution is to replace the standard serial controller chips by a
  1130. 16550A chip which has a built-in  FIFO (a 16 byte hardware data  stack).
  1131. THS supports this chip,  and the use of  this chip generally solves  all
  1132. overrun problems.  If THS  detects such  a chip,  then you  will see the
  1133. string "FIFO:yes" in  the opening window,  and THS will  not lockout the
  1134. CAPS-, NUM- and SCROLL-lock keys. Otherwise, a "FIFO:no" is printed  and
  1135. the usage of these keys will be locked out.
  1136.  
  1137.  
  1138.  
  1139. 4.2. Other ERRORS.
  1140. ------------------
  1141.  
  1142. You  will  get  other  error  reports  following an RS-232 error report,
  1143. because THS gets  out of sync  with the TNC.   This is a  dead end,  you
  1144. should exit THS (if you can do so still) or reboot the PC.
  1145.  
  1146.  
  1147.  
  1148. 5. Decoding of Net/Rom frames.
  1149. ------------------------------
  1150.  
  1151. THS decodes Net/Rom routing broadcast messages and the inter-node frames
  1152. into a plain English text  format. For an interpretation of  the various
  1153. variables shown,  please refer  to "Net/Rom  Version 1.3  Documentation"
  1154. from Software 2000 Inc.
  1155.  
  1156.  
  1157. 6. Final Remarks.
  1158. -----------------
  1159.  
  1160. I  would  be  interested  in  your  proposals  and comments. Please note
  1161. however that I will feel no  obligation of any kind. I am  a professinal
  1162. software designer, but THIS is a hobby project.
  1163.  
  1164. Finally, my address is:
  1165.  
  1166.         Peter H. Heinrich
  1167.           HB9CVV
  1168.         Allemendstr. 25
  1169.         CH-2562 Port
  1170.         Switzerland.
  1171.  
  1172. You can contact me on CompuServe [71470,32] and on BIX (phh) also.
  1173.  
  1174.  
  1175.  
  1176. 7. Revision list.
  1177. -----------------
  1178.  
  1179.  
  1180. (2.00)  01. Aug. 1988   Test release
  1181.                 * First multi connect version
  1182.                 * Restructuring of function tasks, using resources for
  1183.                   synchronisation
  1184.  
  1185.  2.10   20. Aug. 1988   Initial release
  1186.  
  1187.  2.20   18. Oct. 1988 released
  1188.                 * Heardlist (ALT/H, ALT/G) with connect to heard station
  1189.                 * NetRom frame decoding
  1190.  
  1191.  2.30   24. Dec. 1988 released
  1192.                 * Exit to DOS (ALT/E) implemented
  1193.  
  1194.  2.40   05. Feb. 1989 released
  1195.                 * MWINDOW introduced: channel 0 input to selectable window.
  1196.                 * Kill Yapp transfer (ALT/K) by disconnect plus reconnect
  1197.                 * Yapp transfers optimized, enhanced window.
  1198.  
  1199.  2.50   16. Aug. 1989 released
  1200.                 * Message editor
  1201.                 * screen support for up to 60 lines.
  1202.                 * Support for 16550A serial communications controller
  1203.                 * FILTER variable in ALT/T
  1204.  
  1205.         "*" denotes major addition and reason of version number change
  1206.  
  1207. --------------------------- end of file -------------------------------------
  1208. so far.
  1209.